home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
tclMotif-1.4
/
tests
/
core.test
< prev
next >
Wrap
Text File
|
1995-06-29
|
1KB
|
58 lines
#
# These tests have all caused core dumps at some stage.
# They are here to ensure that fixes stay fixed
#
if {[string compare test [info procs test]] == 1} then \
{source defs}
# set VERBOSE 1
# set INTERACTIVE 1
#############
# starts here
#############
xtAppInitialize -class List
. setValues -allowShellResize true
# converter problem using NULL pointer caused only pointer size instead
# of string size to be stored
test core-1.1 {memory test} {
xmForm .form managed \
-translations "#override <Key>Return: action(exit)"
} {.form}
# WindowToString converter problem when given a Window instead of a Widget
test core-1.2 {memory test} {
. resources
set dummy_result 1
} {1}
proc changer {} {
.form.text getValues -value text
.form.btn setValues -labelString $text
}
# nested calls to setValues caused problem in memory reclamation
test core-1.3 {memory test} {
xmTextField .form.text managed
xmPushButton .form.btn managed
.form.text valueChangedCallback changer
.form.text setValues -value "some text"
} {}
.form destroyWidget
#############
# Finish up #
#############
if { ! $INTERACTIVE} {
} else {
. mainLoop
}